package com.union.official.controller.web;

import com.union.official.common.constant.SwaggerConstants;
import com.union.official.common.entity.PageVO;
import com.union.official.entity.vo.request.CityReqVO;
import com.union.official.entity.vo.request.CityRespVO;
import com.union.official.common.entity.ResultVO;
import com.union.official.service.WebService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 测试
 *
 * @author 杨 强
 * @package com.union.official.module
 * @createTime 2024-03-06 17:06
 */
@RestController
@RequestMapping("/web")
@Api(value = "web测试", tags = "web测试")
public class WebController {

    @Resource
    private WebService service;

    @GetMapping("test")
    @ApiOperation(value = "测试" + SwaggerConstants.YQ)
    public PageVO<CityRespVO> hello(CityReqVO reqVO){
        return service.hello(reqVO);
    }
}
